package com.gxuwz.zlc.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 维修信息表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "repair")
public class Repair implements Serializable  {

    @TableId
    private int repairId;  // 报修id
    private String repairContent; //维修内容
    private String repairman; // 报修人
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date repairTime; // 报修时间
    private String equipmentId; // 设备id
    private String equipmentName; // 设备名称
    private String repairState; // 维修状态

}
